/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufba.lasid.v1.jitclouds.mda.examples;

import br.ufba.lasid.v1.jitclouds.mda.MDA;
import br.ufba.lasid.v1.jitclouds.mda.datatypes.virtualization.IHypervisor;
import br.ufba.lasid.v1.jitclouds.mda.datatypes.virtualization.IVirtualMachine;

/**
 *
 * @author aliriosa
 */
public class HypervisorSample {
    
    public static void main(String[] args) throws Exception{
        MDA.startup();
        
        IHypervisor hypervisor = MDA.createHypervisor();
        
        for(IVirtualMachine machine : hypervisor.getMachines()){
            hypervisor.execute(machine.getID(), "startup");
        }
                
    }
}
